#include "common.h"

Timer::Timer(const string& obj) : _start(clock()), _obj(obj)
{

}

Timer::~Timer() 
{ 
	printf("The %s used %lfs!\n", _obj.c_str(), static_cast<double>(clock() - _start) / CLOCKS_PER_SEC); 
}
